/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package support;

/**
 * This class contains static final values for whole application.
 * 
 * @author Zi sheng Wu
 */
public class Constants {

    /**
     * The maximum attempt of challenge
     */
    public static final int CHALLENGE_MAX_ATTEMPT = 5;

    /**
     * The maximum duration of challenge. Time Unit: Second.
     */
    public static final long CHALLENGE_MAX_DURATION = 300; // 5*60 seconds

    /**
     * The maximum number of challenge which user can start.
     */
    public static final int CHALLENGE_OFFENSE_LIMIT = 10;
    
    /**
     * The maximum waiting time for creating source file.  Time Unit: Second.
     */
    public static final int FILE_CREATION_WAIT_TIME = 5;

    /**
     * The maximum waiting time for locating program file.  Time Unit: Second.
     */
    public static final int FILE_COMPILER_WAIT_TIME = 5;

    /**
     * The maximum waiting time for finding program file.  Time Unit: Second.
     */
    public static final int FILE_EXECUTION_WAIT_TIME = 5;

    /**
     * The maximum waiting time for executing program.  Time Unit: Second.
     */
    public static final int EXECUTION_TIMEOUT = 5;
}
